package com.xiao.demo;

import org.junit.Test;

public class Case01 {
    public static void main(String[] args) {
        System.out.println("hello alibaba...");
    }

    @Test
    public void testJunit() {
        System.out.println("junit is normal...");
    }

    @Test
    public void testTryCatch() {
        System.out.println("beginning...");
        try {
            int a = 1;
            try {
                int b = a / 0;
                System.out.println("b = " + b);
            } catch (ArithmeticException e) {
                e.printStackTrace();
            }
            System.out.println("a = " + a);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("end...");
    }

    @Test
    public void testFloat() {
        System.err.println(1.9f - 1.8f);
    }
}
